package com.javaspeak.concurrency.pattern.application;

/**
 * @author John Dickerson
 */
public final class TradeConfirmation {

    private final Trade trade;
    private final boolean isValid;


    public Trade getTrade() {

        return trade;
    }


    public boolean isValid() {

        return isValid;
    }


    public TradeConfirmation( Trade trade, boolean isValid ){

        this.trade = trade;
        this.isValid = isValid;
    }


    @Override
    public String toString() {

        return "TradeConfirmation [trade=" + trade + ", isValid=" + isValid
                + "]";
    }
}
